package itsm.isperp.module.repository.configuration;

import java.util.List;

import itsm.isperp.framework.data.mybatis.dao.CUDMapper;
import itsm.isperp.module.entity.configuration.ConfCiRelationUsePropety;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 配置关系数据访问
 * 
 * @author lizx
 * @date 2014-09-23 16:24
 */
@Repository
public interface ConfCiRelationUsePropetyMapper extends
		CUDMapper<ConfCiRelationUsePropety> {

	List<ConfCiRelationUsePropety> findByFromIdAndRelationTypeId(
			@Param("fromId") String fromId,
			@Param("relationTypeId") String relationTypeId);

	List<ConfCiRelationUsePropety> findByRelationTypeId(
			@Param("relationTypeId") String relationTypeId);

	List<ConfCiRelationUsePropety> findByFromId(@Param("fromId") String fromId);

	List<ConfCiRelationUsePropety> findByFromIdOrToId(@Param("ciId") String ciId);

}
